package com.ordertracker.persistent.dictionary.template;

import com.ordertracker.persistent.constant.DictionaryState;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Description of class.
 * Created 2/22/13 12:33 PM
 *
 * @author andrey.rodin@playtech.com
 */

@MappedSuperclass
public abstract class StateEntityTemplate extends OptimisticLockTemplate {

    @Column(nullable = false, length = 1, columnDefinition = "SMALLINT(1)")
    private DictionaryState state;

    public DictionaryState getState() {
        return state;
    }

    public void setState(DictionaryState state) {
        this.state = state;
    }
}
